package cn.fantasy.jdbc;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 测试数据库连接池
 * @author zhangliang
 */
public class PoolTest {
    public static void main(String[] args) {
        JdbcUtil util = new JdbcUtil();
        try {
            Connection conn = util.getConnection();
            if (conn != null) {
                System.out.println("我得到了一个连接");
            }
            util.CloseConnection(conn, null, null);
        } catch (SQLException e) {
            e.printStackTrace();
        }

    }
}
